import { request } from '@/utils/request';

export function login(userInfo: Record<string, unknown>) {
  return request.post<Record<string, unknown>>(
    {
      url: '/sysUser/login',
      data: userInfo,
    },
    {
      isReturnNativeResponse: true,
    },
  );
}

export function current() {
  return request.post<Record<string, unknown>>({
    url: '/sysUser/current',
  });
}
